﻿@model kxcxw.Data.Entities.Feedback
@{
    ViewBag.Title = "开心促销网-意见反馈";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<h3 class="title">
    <span></span>意见反馈</h3>
<div class="contenttext" style="margin-top: 20px;">
    @if (Model.FeedbackId <= 0)
    {
        using (Html.BeginForm("ReleaseFeedback", "Content", FormMethod.Post))
        {
        @Html.ValidationSummary(true)
        <div class="field">
            <div class="editor-label">
                <span>*</span>您的称呼：
            </div>
            <div class="editor-field-mid">
                @Html.EditorFor(t => t.UserName)
                @Html.ValidationMessageFor(t => t.UserName)
            </div>
        </div>
        <div class="field">
            <div class="editor-label">
                <span>*</span>联系方式：
            </div>
            <div class="editor-field-mid">
                @Html.EditorFor(t => t.ContactInfo)
                @Html.ValidationMessageFor(t => t.ContactInfo)
            </div>
        </div>
        <div class="field" style="height:auto;">
            <div class="editor-label">
                <span>*</span>您的建议：
            </div>
            <div class="editor-field-long">
                @Html.TextAreaFor(t => t.FeedbackContent)
                @Html.ValidationMessageFor(t => t.FeedbackContent)
            </div>
        </div>
        <div style="float: left; margin-left: 77px; display: inline;">
            <input type="submit" class="btn_mid" value="提　　交" />
        </div>
        }
    }
    else
    {
        <div class="">
            提交成功，谢谢您的支持。 @Html.ActionLink("返回首页»", "Index", "Home")
        </div>
    }
</div>
